const now = new Date();
const year = now.getFullYear();
const month = now.getMonth() + 1; // getMonth() 返回的月份是从 0 开始的，所以需要加 1
const day = now.getDate();
// YY-MM-DD
const DayTime = `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;
// const DayTime = '2023-8-26'
// 时间戳
const timestamp = Date.now();
const DayTimeSecond = Math.floor(Date.now() / 1000);

export { DayTime, DayTimeSecond }
